﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="Default" CodeBehind="HuiZongCWXX.aspx.cs" Inherits="Web.Pages.YongShui._4.ChaoBiaoKZ.HuiZongCWXX" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script src="../../../JS/jquery.js"></script>
    <script src="../../../PageJS/wap.js"></script>
    <title>汇总错误信息</title>
    <script type="text/javascript">
        function Print() {
            var params = new Array();
            var year = $("#txtYear").text();
            var month = $("#txtMonth").text();
            params.push("V_GUANLIKH:" + DrpQK.GetValue());
            params.push("V_IY:" + year);
            params.push("V_IM:" + month);
            params.push("V_HGB1:" + 10);
            params.push("V_HGB2:" + 4);
            params.push("V_TYPE:" + 1);

            wap.common.printjx('ZhangDanDY', [
                { key: 'QUERYPARAM', value: params.join("|") },
                { key: 'BAOBIAOID', value: "100146" },
                { key: 'USERINFO', value: "csms" }
            ]);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="tabletitle1">
                    错误显示
                </div>
                <table style="">
                    <tr>
                        <td>区块：
                        </td>
                        <td>
                            <dx:ASPxComboBox ClientInstanceName="DrpQK" ID="DrpQK" OnSelectedIndexChanged="DrpQK_SelectedValueChanged" AutoPostBack="true" runat="server" ValueType="System.String">
                                <ClientSideEvents SelectedIndexChanged="function(s,e){LoadPanel.Show();  }" />
                            </dx:ASPxComboBox>
                        </td>
                        <td>
                            <dx:ASPxLabel ID="IYIM" runat="server" Text=""></dx:ASPxLabel>
                            <dx:ASPxLabel ID="txtYear" runat="server" Text="" ClientVisible="False"></dx:ASPxLabel>
                            <dx:ASPxLabel ID="txtMonth" runat="server" Text="" ClientVisible="False"></dx:ASPxLabel>
                        </td>
                        <td>
                             <dx:ASPxButton ID="btnPrint" runat="server" Text="打印" ClientInstanceName="btnPrint" AutoPostBack="false" UseSubmitBehavior="false" >
                        <ClientSideEvents Click="function(s, e) {                             
                     Print();  
                }" />
                    </dx:ASPxButton>
                        </td>
                        <td style="min-width: 150px;" align="right">

                            <dx:ASPxLabel ID="LabNum" runat="server" Text=""></dx:ASPxLabel>
                        </td>
                    </tr>
                </table>
                <fieldset style="border: 1px solid  cornflowerblue;">
                   
                    <dx:ASPxGridView ID="gvWenJianGZ" runat="server"    AutoGenerateColumns="False" KeyFieldName="S_YONGHUBH" Theme="Aqua1" Width="100%">

                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="S_MINGCHENG" Caption="行政区块" Width="20%" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_YONGHUBH" Caption="用户号" Width="20%" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_SHUIBIAOBH" Caption="水表编号" Width="20%" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>
                              <dx:GridViewDataTextColumn Caption="服务点号" FieldName="S_SERVICENUMBER" VisibleIndex="3" Width="100px">
                                   <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_CEHAO" Caption="册号" Width="20%" HeaderStyle-HorizontalAlign="Center" VisibleIndex="4">
                                <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_CUOWUXX" Caption="提示信息" Width="20%" HeaderStyle-HorizontalAlign="Center" VisibleIndex="5">
                                <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>

                          
                            <dx:GridViewDataTextColumn Caption="账户编号" FieldName="S_CISNUMBER" VisibleIndex="6" Width="100px">
                                 <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>

                        </Columns>
                       <SettingsPager   PageSize="50"     ></SettingsPager>
                        <Settings VerticalScrollableHeight="350"  VerticalScrollBarMode="Auto" />

                    </dx:ASPxGridView>
                </fieldset>
                 <dx:ASPxLoadingPanel ID="LoadPanel" Theme="Metropolis" ClientInstanceName="LoadPanel" runat="server" Modal="True"   Text="正在查询..."></dx:ASPxLoadingPanel>
                   
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
